package com.amkai.mobile.client;

import com.amkai.mobile.utils.data.MobileDb;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Test extends Activity {
	MobileDb mdb;
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.test);
		Button btn_delete = (Button) findViewById(R.id.btn_delete);
		Button btn_continue = (Button) findViewById(R.id.btn_continue);
		mdb = new MobileDb(this);
		btn_delete.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				mdb.open();
				mdb.deleteConnection();
				mdb.close();
				Test.this.finish();
			}
			
		});
		
		btn_continue.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Test.this.finish();
				
			}
			
		});

	}

}
